package com.heima.model.behavior.dtos;

import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
@Data
public class LikesBehaviorDTO {
    @NotNull(message = "文章id不能为空")
    private Long articleId;

    private Integer equipmentId;
    @Range(min = 0,max = 1)
    private Integer operation;    //0 点赞  1 取消赞
    @Range(min = 0,max = 2)
    private short type;    //0 文章  1 动态
}
